Fix corrupted video files by repairing broken headers with ffmpeg and concatenating the valid segments into a single playable file.